package com.newtouch.xcd.cms.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 本表存放客户的相关信息
 * </p>
 *
 * @author dongyuefeng
 * @since 2020-05-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("5k_customer")
@ApiModel(value="Customer对象", description="本表存放客户的相关信息")
public class Customer implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "客户id")
    @TableId(value = "customer_id", type = IdType.AUTO)
    private Integer customerId;

    @ApiModelProperty(value = "所有者岗位")
    @TableField("owner_role_id")
    private Integer ownerRoleId;

    @ApiModelProperty(value = "创建者id")
    @TableField("creator_role_id")
    private Integer creatorRoleId;

    @ApiModelProperty(value = "客户详情ID")
    @TableField("contacts_id")
    private Integer contactsId;

    @ApiModelProperty(value = "客户名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "客户分类")
    @TableField("origin")
    private String origin;

    @ApiModelProperty(value = "建立时间")
    @TableField("create_time")
    private Integer createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private Integer updateTime;

    @ApiModelProperty(value = "领取或分配时间")
    @TableField("get_time")
    private Integer getTime;

    @ApiModelProperty(value = "下次联系时间")
    @TableField("nextstep_time")
    private Integer nextstepTime;

    @ApiModelProperty(value = "是否删除")
    @TableField("is_deleted")
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty(value = "是否锁定")
    @TableField("is_locked")
    private Integer isLocked;

    @ApiModelProperty(value = "删除人")
    @TableField("delete_role_id")
    private Integer deleteRoleId;

    @ApiModelProperty(value = "删除时间")
    @TableField("delete_time")
    private Integer deleteTime;

    @ApiModelProperty(value = "客户等级")
    @TableField("grade")
    private String grade;

    @ApiModelProperty(value = "客户编号")
    @TableField("customer_code")
    private String customerCode;

    @TableField("customer_owner_id")
    private String customerOwnerId;

    @ApiModelProperty(value = "客户类别")
    @TableField("customer_status")
    private Integer customerStatus;

    @ApiModelProperty(value = "成交客户类别")
    @TableField("cus_type")
    private Integer cusType;

    @ApiModelProperty(value = "头像")
    @TableField("img")
    private String img;

    @ApiModelProperty(value = "客户切入排序")
    @TableField("crm_vexwqc")
    private String crmVexwqc;

    @ApiModelProperty(value = "客户需求排序")
    @TableField("crm_kkxfmt")
    private String crmKkxfmt;

    @ApiModelProperty(value = "服务人员1")
    @TableField("ervice_personal_one")
    private String ervicePersonalOne;

    @ApiModelProperty(value = "服务人员2")
    @TableField("ervice_personal_two")
    private String ervicePersonalTwo;

    @ApiModelProperty(value = "服务人员3")
    @TableField("ervice_personal_three")
    private String ervicePersonalThree;

    @ApiModelProperty(value = "客户地址")
    @TableField("crm_wqrrsp")
    private String crmWqrrsp;

    @ApiModelProperty(value = "上次服务时间")
    @TableField("nowservice_time")
    private Integer nowserviceTime;

    @ApiModelProperty(value = "联系方式")
    @TableField("crm_hxhuww")
    private String crmHxhuww;


}
